package caiziyou.com.designpattern.prototype;

public class Client {

	public static void main(String[] args) {
		Sheep sheep = new Sheep("山羊", 2, "白色");
		Sheep sheep1 = new Sheep(sheep.getName(), sheep.getAge(), sheep.getColor());
		Sheep sheep2 = new Sheep(sheep.getName(), sheep.getAge(), sheep.getColor());
		Sheep sheep3 = new Sheep(sheep.getName(), sheep.getAge(), sheep.getColor());
		Sheep sheep4 = new Sheep(sheep.getName(), sheep.getAge(), sheep.getColor());
		Sheep sheep5 = new Sheep(sheep.getName(), sheep.getAge(), sheep.getColor());
		Sheep sheep6 = new Sheep(sheep.getName(), sheep.getAge(), sheep.getColor());
		Sheep sheep7 = new Sheep(sheep.getName(), sheep.getAge(), sheep.getColor());
		Sheep sheep8 = new Sheep(sheep.getName(), sheep.getAge(), sheep.getColor());
		Sheep sheep9 = new Sheep(sheep.getName(), sheep.getAge(), sheep.getColor());
		Sheep sheep10 = new Sheep(sheep.getName(), sheep.getAge(), sheep.getColor());
		System.out.println(sheep1);
		System.out.println(sheep2);
		System.out.println(sheep3);
		System.out.println(sheep4);
		System.out.println(sheep5);
		System.out.println(sheep6);
		System.out.println(sheep7);
		System.out.println(sheep8);
		System.out.println(sheep9);
		System.out.println(sheep10);
	}
}
